<?php
class Event_HomeController extends Clu_Controller_Action_Hvn
{
	public function init()
	{
		//require_once (APP_PATH.'/modules/place/Model/City.php');
		//require_once  (APP_PATH.'/modules/article/Model/Article.php');
		//require_once  (APP_PATH.'/modules/category/Model/Category.php');
		//require_once  (APP_PATH.'/modules/comment/Model/Comment.php');
		//require_once  (APP_PATH.'/modules/user/Model/User.php');
		$this->mCity = new place_Model_City();
		$this->m = new event_Model_Service();
		$this->mArticle = new article_Model_Service();
		$this->mCategory = new category_Model_Category();
		$this->mCategory->setTables('event');
		$this->mComment = new comment_Model_Service();
		parent::init();
	}
	
	public function indexAction()
	{
		$sess = new Zend_Session_Namespace(CLU_NS);
		
		$simpleSearchRequest = array(
                                'module' => 'event',
                                'controller' => 'block',
                                'action' => 'simpleSearch',
                                'regionId' => 4,
                                'boxWeight' => 0,
								//'page' => 'home'
                );
		$this->addMiniAction($simpleSearchRequest);
				
		$eventBrowseByCategoriesRequest = array(
                                'module' => 'event',
                                'controller' => 'block',
                                'action' => 'browseByCategory',
                                'regionId' => 5,
                                'boxWeight' => 0,
                );
        $this->addMiniAction($eventBrowseByCategoriesRequest);
	}
}
?>